package com.ruike.alisurface.bean;

import java.io.Serializable;
import java.util.List;

/**
 * 积分创建订单返回对象
 *
 * @author voodoo
 * @createDate 2023/03/07 007上午 09:01
 */
public class OrderPointResultBean implements Serializable {

    /**
     * data : {"order_id":"2022052313084800018590","pay_fee":0,"detail_list":[{"slotIndex":1,"quantity":1,"total_point":1,"product_name":"康师傅香辣牛肉面","product_pic":"http://120.78.219.34:8018/UploadFile/product/06a8b1dc-95be-46d7-92fa-8dbe94ce1613.jpg","slotType":21002}],"preUrl":"","payCode":"","payCodeExpireTime":""}
     * code : 0
     * msg : 下单成功
     */

    private int code;
    private String msg;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Serializable {
        /**
         * order_id : 2022052313084800018590
         * total_point : 0
         * detail_list : [{"slotIndex":1,"quantity":1,"total_point":1,"product_name":"康师傅香辣牛肉面","product_pic":"http://120.78.219.34:8018/UploadFile/product/06a8b1dc-95be-46d7-92fa-8dbe94ce1613.jpg","slotType":21002}]
         * preUrl :
         * payCode :
         * payCodeExpireTime :
         */

        private String order_id;
        private int total_point;
        private String preUrl;
        private String payCode;
        private String payCodeExpireSecondsTime;
        private List<DetailListBean> detail_list;

        public String getOrder_id() {
            return order_id;
        }

        public void setOrder_id(String order_id) {
            this.order_id = order_id;
        }

        public int getTotal_point() {
            return total_point;
        }

        public void setTotal_point(int total_point) {
            this.total_point = total_point;
        }

        public String getPreUrl() {
            return preUrl;
        }

        public void setPreUrl(String preUrl) {
            this.preUrl = preUrl;
        }

        public String getPayCode() {
            return payCode;
        }

        public void setPayCode(String payCode) {
            this.payCode = payCode;
        }

        public String getPayCodeExpireSecondsTime() {
            return payCodeExpireSecondsTime;
        }

        public void setPayCodeExpireSecondsTime(String payCodeExpireSecondsTime) {
            this.payCodeExpireSecondsTime = payCodeExpireSecondsTime;
        }

        public List<DetailListBean> getDetail_list() {
            return detail_list;
        }

        public void setDetail_list(List<DetailListBean> detail_list) {
            this.detail_list = detail_list;
        }

        public static class DetailListBean implements Serializable {
            /**
             * slotIndex : 1
             * quantity : 1
             * total_point : 1
             * product_name : 康师傅香辣牛肉面
             * product_pic : http://120.78.219.34:8018/UploadFile/product/06a8b1dc-95be-46d7-92fa-8dbe94ce1613.jpg
             * slotType : 21002
             */

            private int slotIndex;
            private int quantity;
            private int total_point;
            private String product_name;
            private String product_pic;
            private int slotType;

            public int getSlotIndex() {
                return slotIndex;
            }

            public void setSlotIndex(int slotIndex) {
                this.slotIndex = slotIndex;
            }

            public int getQuantity() {
                return quantity;
            }

            public void setQuantity(int quantity) {
                this.quantity = quantity;
            }

            public int getTotal_point() {
                return total_point;
            }

            public void setTotal_point(int total_point) {
                this.total_point = total_point;
            }

            public String getProduct_name() {
                return product_name;
            }

            public void setProduct_name(String product_name) {
                this.product_name = product_name;
            }

            public String getProduct_pic() {
                return product_pic;
            }

            public void setProduct_pic(String product_pic) {
                this.product_pic = product_pic;
            }

            public int getSlotType() {
                return slotType;
            }

            public void setSlotType(int slotType) {
                this.slotType = slotType;
            }

            @Override
            public String toString() {
                return "DetailListBean{" +
                        "slotIndex=" + slotIndex +
                        ", quantity=" + quantity +
                        ", total_point=" + total_point +
                        ", product_name='" + product_name + '\'' +
                        ", product_pic='" + product_pic + '\'' +
                        ", slotType=" + slotType +
                        '}';
            }
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "order_id='" + order_id + '\'' +
                    ", total_point=" + total_point +
                    ", preUrl='" + preUrl + '\'' +
                    ", payCode='" + payCode + '\'' +
                    ", payCodeExpireSecondsTime='" + payCodeExpireSecondsTime + '\'' +
                    ", detail_list=" + detail_list +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "OrderPointResultBean{" +
                "data=" + data +
                ", code=" + code +
                ", msg='" + msg + '\'' +
                '}';
    }
}
